﻿CREATE FUNCTION [audit].[GetTraceColNo]
(@ColName VARCHAR (255))
RETURNS INT
AS
BEGIN
	DECLARE @ReturnValue int

	SELECT @ReturnValue = [number]
	FROM [config].[TraceColumns]
	WHERE([name] = @ColName)

	RETURN(@ReturnValue)
END